var express = require('express');
var router = express.Router();
var Goodslist = require("../models/goodslist");


//获取某一条数据
router.get('/', function(req, res, next) {

    Goodslist.find({ //查找一条
        _id:req.param("_id"),
    },(err, doc)=>{
        if(err){
            res.json({
                status:"1",
                msg:err.message
            })
        }else{
            res.json({
                status:"0",
                msg:"",
                result:{
                    list:doc
                }
            })
        }
    })
});

module.exports = router;